package com.bd.scm.domain.models.synchronization;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 车辆进出记录
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("smart_cartemp")
public class SmartCartemp extends Model<SmartCartemp> {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Integer id;

    @TableField("car_name")
    private String carName;

    @TableField("car_inout")
    private Integer carInout;

    @TableField("car_sbid")
    private String carSbid;

    @TableField("car_datetime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date carDatetime;

    @TableField("card_sbls")
    private String cardSbls;

    @TableField("user_serial")
    private Long userSerial;

    @TableField("car_picturelujin")
    private String carPicturelujin;

    @TableField("car_beizhu")
    private String carBeizhu;
}
